package com._119yn.host.gst200.api.health;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Slf4j
@RestController
@RequestMapping("api/health")
public class HealthController {

    @GetMapping
    public Object $() {
        log.info("Health check controller");
        return Map.of("status", "ok");
    }

    @PostMapping("check")
    public Object $(Object o) {
        return o;
    }

}
